﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CycleTimeReport.CApCTRSettingsTimerInfo
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using System;
using System.ComponentModel;


namespace DnProcessSimulateCommands.CycleTimeReport;

public class CApCTRSettingsTimerInfo : INotifyPropertyChanged
{
  public string TimerName { get; set; }

  public bool TimerActive { set; get; }

  public CApCTRSettingsTimerInfo(string timerName)
  {
    this.TimerName = timerName;
    this.TimerActive = false;
  }

  public void Update()
  {
  }

  public override string ToString() => CApCTRUtilities.BoolToInt(this.TimerActive).ToString();

  public virtual void SetFromString(string value)
  {
    this.TimerActive = CApCTRUtilities.IntToBool(Convert.ToInt32(value));
  }

  public event PropertyChangedEventHandler PropertyChanged;

  protected virtual void OnPropertyChanged(string propertyName)
  {
    if (this.PropertyChanged == null)
      return;
    this.PropertyChanged((object) this, new PropertyChangedEventArgs(propertyName));
  }
}
